using FytSoa.Domain.Core.Result;
using System.Threading.Tasks;
using FytSoa.Domain.Core.Param;

namespace FytSoa.Application.Sys
{
    /// <summary>
    /// 字典信息表服务接口
    /// </summary>
    public interface ISysCodeService:IApplicationService
    {
        /// <summary>
        /// 查询所有——分页
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<PageResult<SysCodeDto>>> GetPagesAsync (PageParam<CommonParam> param);
        
        /// <summary>
        /// 根据主键查询
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<SysCodeDto>> GetAsync (long id);

        /// <summary>
        /// 添加
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<bool>> AddAsync (SysCodeDto model);

        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<bool>> ModifyAsync (SysCodeDto model);

        /// <summary>
        /// 删除-支持多个删除，逗号分隔
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<bool>> DeleteAsync (string ids);
    }
}
